From: Andres Lagar-Cavilla Date: Thu, 1 Dec 2011 17:58:17 +0000 (+0000) Subject: Make the prototype of p2m_mem_access_resume consistent X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=c93217edc3e3b904491df571c51f1f2588a58e58;p=xen.git Make the prototype of p2m_mem_access_resume consistent Signed-off-by: Adin Scannell Signed-off-by: Keir Fraser Signed-off-by: Andres Lagar-Cavilla Acked-by: Tim Deegan Committed-by: Tim Deegan --- diff --git a/xen/arch/x86/mm/mem_access.c b/xen/arch/x86/mm/mem_access.c index 6b06ca4c7e..74fa4d3424 100644 --- a/xen/arch/x86/mm/mem_access.c +++ b/xen/arch/x86/mm/mem_access.c @@ -29,13 +29,12 @@ int mem_access_domctl(struct domain *d, xen_domctl_mem_event_op_t *mec, XEN_GUEST_HANDLE(void) u_domctl) { int rc; - struct p2m_domain *p2m = p2m_get_hostp2m(d); switch( mec->op ) { case XEN_DOMCTL_MEM_EVENT_OP_ACCESS_RESUME: { - p2m_mem_access_resume(p2m); + p2m_mem_access_resume(d); rc = 0; } break; diff --git a/xen/arch/x86/mm/p2m.c b/xen/arch/x86/mm/p2m.c index afe026c487..5054f92143 100644 --- a/xen/arch/x86/mm/p2m.c +++ b/xen/arch/x86/mm/p2m.c @@ -1142,9 +1142,8 @@ void p2m_mem_access_check(unsigned long gpa, bool_t gla_valid, unsigned long gla /* VCPU paused, mem event request sent */ } -void p2m_mem_access_resume(struct p2m_domain *p2m) +void p2m_mem_access_resume(struct domain *d) { - struct domain *d = p2m->domain; mem_event_response_t rsp; mem_event_get_response(&d->mem_event->access, &rsp); diff --git a/xen/include/asm-x86/p2m.h b/xen/include/asm-x86/p2m.h index 581cd81552..efb77e1ab1 100644 --- a/xen/include/asm-x86/p2m.h +++ b/xen/include/asm-x86/p2m.h @@ -495,7 +495,7 @@ static inline void p2m_mem_paging_populate(struct domain *d, unsigned long gfn) void p2m_mem_access_check(unsigned long gpa, bool_t gla_valid, unsigned long gla, bool_t access_r, bool_t access_w, bool_t access_x); /* Resumes the running of the VCPU, restarting the last instruction */ -void p2m_mem_access_resume(struct p2m_domain *p2m); +void p2m_mem_access_resume(struct domain *d); /* Set access type for a region of pfns. * If start_pfn == -1ul, sets the default access type */